package com.xinke.module.system.model.vo.social;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.*;
import java.util.*;
import javax.validation.constraints.*;

@Schema(description = "管理后台 - 社交用户新增/修改 Request VO")
@Data
public class SocialUserSaveReqVO {

    @Schema(description = "主键", requiredMode = Schema.RequiredMode.REQUIRED, example = "6171")
    private Long socialUserId;

    @Schema(description = "社交平台的类型", requiredMode = Schema.RequiredMode.REQUIRED, example = "2")
    @NotNull(message = "社交平台的类型不能为空")
    private Integer socialType;

    @Schema(description = "社交 openid", requiredMode = Schema.RequiredMode.REQUIRED, example = "1863")
    @NotEmpty(message = "社交 openid不能为空")
    private String socialOpenid;

    @Schema(description = "社交 token")
    private String socialToken;

    @Schema(description = "原始 Token 数据，一般是 JSON 格式", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotEmpty(message = "原始 Token 数据，一般是 JSON 格式不能为空")
    private String rawTokenInfo;

    @Schema(description = "用户昵称", requiredMode = Schema.RequiredMode.REQUIRED, example = "芋艿")
    @NotEmpty(message = "用户昵称不能为空")
    private String userNickName;

    @Schema(description = "用户头像")
    private String userAvatar;

    @Schema(description = "原始用户数据，一般是 JSON 格式", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotEmpty(message = "原始用户数据，一般是 JSON 格式不能为空")
    private String rawUserInfo;

    @Schema(description = "最后一次的认证 code", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotEmpty(message = "最后一次的认证 code不能为空")
    private String authCode;

    @Schema(description = "最后一次的认证 state")
    private String authState;

}